package org.hamster.multidropbox.mainView.commands
{
	import org.hamster.multidropbox.dropbox.vo.AppDropboxClient;
	import org.hamster.multidropbox.main.utils.PureMVCHelper;
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	
	public class GetPathDetailsCommand extends SimpleCommand
	{
		public function GetPathDetailsCommand()
		{
			super();
		}
		
		override public function execute(notification:INotification):void
		{
			var data:Object = notification.getBody();
			var uid:int = data.uid;
			var path:String = data.path;
			var client:AppDropboxClient = PureMVCHelper.dropboxClientListProxy.getClientByUID(uid);
			PureMVCHelper.dropboxClientProxy.metadata(client, path);
		}
	}
}